-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refine(v3.7.x): refine bootctrl.common CMDHelperFuncs #289
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…t raise exception
Bodong-Yang
added
the
refinement
Improve the performance, code quality(like improving code structure/readability/error handling/robus
label
Apr 24, 2024
Bodong-Yang
added a commit
to Bodong-Yang/ota-client
that referenced
this pull request
Apr 25, 2024
commit 727ebdd Author: Bodong Yang <[email protected]> Date: Thu Apr 25 12:03:09 2024 +0900 refine(v3.7.x): refine bootctrl.common CMDHelperFuncs (tier4#289) This PR does the following things: 1. refines the common module's subprocess wrapper methods. 2. refines and simplify the boot_control.common.CMDHelperFuncs implementation a lot. 3. cleanup and remove boot_contro.errors, now each boot controller implementation has their own error types. 4. use mount slot helper's prepare_standby_dev instead of each boot controller's prepare_standby_dev method. 5. integrate the new CMDHelperFuncs to each boot controller and fix up test files accordingly. NOTE that cboot boot controller implementation is temporarily removed, it will be added back in tier4#287 .
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
refinement
Improve the performance, code quality(like improving code structure/readability/error handling/robus
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Warning
For convenience, this PR remove the cboot boot control implementation as cboot boot controller is fully refactored in #287 .
This PR does the following things:
common
module's subprocess wrapper methods.boot_control.common.CMDHelperFuncs
implementation a lot.boot_contro.errors
, now each boot controller implementation has their own error types.Other changes are integrating the new
CMDHelperFuncs
to each boot controller and fix up test files accordingly.Bug fixed
This PR also fixes a problem of rpi_boot device respond an empty OTA progress to status API call before device reboots. This is caused by rpi_boot implementation directly call reboot with subprocess without using the correct
CMDHelperFunc
reboot method.Check list
Behavior changes
Does this PR introduce behavior change(s)?
Breaking change
Does this PR introduce breaking change?
Related links & tickets